#include "qpaintutils.h"
#include <QPainter>

void QPaintUtils::drawCircle(QPainter *painter, QPoint *center, int d, QString text, int fontSize, QColor *color)
{
    QPen pen;
    pen.setColor(*color);
    pen.setWidth(5);
    painter->setPen(pen);

    painter->setBrush(Qt::transparent);
    painter->drawEllipse(*center, d / 2,  d / 2);

    painter->setPen(Qt::black);
    painter->setFont(QFont("Ubuntu", fontSize));

    QRect rect(10, 20, 80, 60);
    painter->drawText(rect, Qt::AlignCenter, text);
}

